package com.kt.dion.golf.data.golfzone;

import java.util.ArrayList;

import com.kt.dion.golf.data.Data;
import com.kt.dion.golf.util.Log;

public class GolfZoneTimeListData extends Data
{
	private ArrayList arrTime = new ArrayList();

	public void addTime(Time time)
	{
		arrTime.add(time);
	}

	public Time getTime(int i)
	{
		return (Time) arrTime.get(i);
	}

	public Data getSubData(int i)
	{
		if (i < arrTime.size())
			return (Data) arrTime.get(i);
		else
			return null;
	}

	public int getDataSize()
	{
		if (arrTime.isEmpty())
			Log.outLine(" arrTime is empty !!!!!!!!!!!!");
		return arrTime.size();
	}

	public class Time
	{
		private String productNo;
		private String productType;
		private String time;
		private String courseName;

		public String getProductNo()
		{
			return productNo;
		}

		public void setProductNo(String productNo)
		{
			this.productNo = productNo;
		}

		public String getProductType()
		{
			return productType;
		}

		public void setProductType(String productType)
		{
			this.productType = productType;
		}

		public String getTime()
		{
			return time;
		}

		public void setTime(String time)
		{
			this.time = time;
		}

		public String getCourseName()
		{
			return courseName;
		}

		public void setCourseName(String courseName)
		{
			this.courseName = courseName;
		}
	}

	public String toString()
	{
		return null;
	}

	public void dispose(boolean isDisposeOfPage)
	{
		arrTime.clear();
	}
}
